<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['系统配置','固件管理[运维]','添加项目固件']" icon="fa fa-cog"
			class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="s_page_wrap">
		<div class="page-header s_page_title">
			<h1 class="page_detail_title">添加项目固件</h1>
		</div>
		<div class="row" style="margin-top:5px;">
			<div class="col-xs-12">
				<form name="userForm" id="schedulingForm" class="form-horizontal" novalidate="novalidate"
					[saBootstrapValidator]="validatorOptions">
					<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right" for="icon">所属公司<sup>*</sup></label>
						<div class="col-sm-10">
							<sa-company-tree companyTreeId="companyTree" [Height]="32" [inputName]="'parentCompanyName'"
								[companyNameValue]="page.parentName" [companyIdValue]="page.parentId"
								(companySelected)="companySelected($event)"></sa-company-tree>
						</div>
					</div>
					<div class="form-group clearfix">
						<label class="control-label col-sm-1 no-padding-right">车辆用途<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix s_fix_select2">
								<select class="form-control select2" id="useTypeSelect" select2 name="carUseType" style="width: 100%" >
									<option value="">请选择</option>
									<optgroup *ngFor="let item of carTypeList" [label]="item.label">
										<option *ngFor="let itemChild of item.children" [value]='itemChild.id'>{{itemChild.label}}</option>
									</optgroup>
								</select>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">硬件版本<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix">
								<select name="hwVersion" class="form-control" [(ngModel)]='page.hwVersion' (change)="versionChange()">
									<option value="">请选择</option>
									<option value="4">V4</option>
									<option value="5">V5</option>
									<option value="7">V7</option>
									<option value="8">V8</option>
									<option value="9">V9</option>
									<option value="10">V10</option>
								</select>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="control-label col-sm-1 no-padding-right">通道数<sup>*</sup></label>
						<div class="col-sm-10" style="position: relative;">
							<div class="clearfix">
								<select name="sensorNum" class="form-control" [(ngModel)]='page.sensorNum'>
									<option value="-1" selected>默认</option>
									<option value="1">1通道</option>
									<option value="2">2通道</option>
									<option value="3">3通道</option>
									<option value="4">4通道</option>
								</select>
							</div>
							<p class="tips_span" style="position: absolute; left: 12px; bottom: -18px; text-align: left;color: #999;font-size: 12px;line-height: normal;"><span
									class="fa fa-exclamation-circle" aria-hidden="true"
									style="display:inline-block;margin-right: 4px;font-size: 12px; color:#999"></span>通道数是指实际安装传感器的个数，用于区分不同版本的算法固件，通常情况选择默认
							</p>
						</div>
					</div>
					<div class="form-group s_fix_select2">
						<label class="control-label col-sm-1 no-padding-right">固件名称<sup>*</sup></label>
						<div class="col-sm-10">
							<div class="clearfix">
								<select class="select2 form-control" id="binNameSelect2">
									<option value=''></option>
								</select>
							</div>
						</div>
					</div>

					<div class="tips"
						style="text-align: left;color: #999;font-size: 12px;line-height: normal; margin-bottom: 20px;">
						<p>算法固件匹配规则说明：</p>
						<p>所属公司：优先选挥相同的安装厂区的固件;未找到相同安装厂区的固件，则选择安装厂区顶级公司的固件</p>
						<p>通道数：相同条件下，优先选择通道数相同的固件;未找到相同通道数的固件，则选择默认的固件</p>
					</div>
					<div class="center">
						<button type="button" (click)='uploadFile()' class="btn btn-primary">添加</button>
						<button type="button" (click)='goBack()' class="btn default">返回</button>
					</div>
				</form>
				<div class="hr hr-dotted"></div>
			</div>
		</div>
	</div>
</div>